package com.cyt.web.controller.work.question;

import com.cyt.base.enums.BusinessType;
import com.cyt.base.enums.OperatorType;
import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.aspect.BaseLog;
import com.cyt.work.question.model.vo.QuestionScoreVo;
import com.cyt.work.question.service.IQuestionScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 问卷题目表 前端控制器
 *
 * @author concong tao
 * @since 2019-09-4
 */
@RestController
public class QuestionScoreController {

    @Autowired
    private IQuestionScoreService questionScoreService;

    @BaseLog(module = "问卷", classz = "问卷题目", methods = "分页查询对象", businessType = BusinessType.GET, operatorType = OperatorType.MANAGE)
    @RequestMapping(value = "/work/questionscore/page", method = RequestMethod.POST)
    public ReturnResult page(QuestionScoreVo questionScoreVo, int page, int limit) {
        return questionScoreService.page(questionScoreVo, limit, page);
    }
}
